using System;
using System.Collections.Generic;
using System.Text;

namespace EZCRS.HCMS.Entity
{
    public class hfg_user
    {
        private int? _id;
        private string _usrpassword = String.Empty;
        private int? _gid;
        private int? _lvlid;
        private int? _endyear;
        private decimal _scores;
        private decimal _scorefreeze;
        private string _usremail = String.Empty;
        private byte _emailformat;
        private byte _emaillanguage;
        private string _usrmobile = String.Empty;
        private string _question = String.Empty;
        private string _answer = String.Empty;
        private string _usrfirstname = String.Empty;
        private string _usrlastname = String.Empty;
        private byte _usrgender;
        private DateTime? _usrbirthday;
        private string _usrnationality = String.Empty;
        private string _idtype = String.Empty;
        private string _idno = String.Empty;
        private string _usrcountry = String.Empty;
        private string _usrprovince = String.Empty;
        private string _usrcity = String.Empty;
        private string _smoke = String.Empty;
        private string _bed = String.Empty;
        private string _pillow = String.Empty;
        private DateTime? _regdate;
        private DateTime? _logdate;
        private string _logip = String.Empty;
        private int? _logcount;
        private bool _usrstatus;
        private bool _emailcheck;
        private bool _mobilecheck;
        private string _usercheckcode = String.Empty;
        private bool _ademail;
        private bool _admobile;
        private DateTime? _checkcodedate;
        private int? _bookingcount;
        private int? _nightcount;

        public hfg_user()
        {
        }

       

        //protected void LoadFromReader(SqlDataReader reader)
        //{
        //    if (reader != null && !reader.IsClosed)
        //    {
        //        _id = reader.GetInt32(0);
        //        if (!reader.IsDBNull(1)) _usrpassword = reader.GetString(1);
        //        if (!reader.IsDBNull(2)) _gid = reader.GetInt32(2);
        //        if (!reader.IsDBNull(3)) _lvlid = reader.GetInt32(3);
        //        if (!reader.IsDBNull(4)) _endyear = reader.GetInt32(4);
        //        if (!reader.IsDBNull(5)) _scores = reader.GetDecimal(5);
        //        if (!reader.IsDBNull(6)) _scorefreeze = reader.GetDecimal(6);
        //        if (!reader.IsDBNull(7)) _usremail = reader.GetString(7);
        //        if (!reader.IsDBNull(8)) _emailformat = reader.GetByte(8);
        //        if (!reader.IsDBNull(9)) _emaillanguage = reader.GetByte(9);
        //        if (!reader.IsDBNull(10)) _usrmobile = reader.GetString(10);
        //        if (!reader.IsDBNull(11)) _question = reader.GetString(11);
        //        if (!reader.IsDBNull(12)) _answer = reader.GetString(12);
        //        if (!reader.IsDBNull(13)) _usrfirstname = reader.GetString(13);
        //        if (!reader.IsDBNull(14)) _usrlastname = reader.GetString(14);
        //        if (!reader.IsDBNull(15)) _usrgender = reader.GetByte(15);
        //        if (!reader.IsDBNull(16)) _usrbirthday = reader.GetDateTime(16);
        //        if (!reader.IsDBNull(17)) _usrnationality = reader.GetString(17);
        //        if (!reader.IsDBNull(18)) _idtype = reader.GetString(18);
        //        if (!reader.IsDBNull(19)) _idno = reader.GetString(19);
        //        if (!reader.IsDBNull(20)) _usrcountry = reader.GetString(20);
        //        if (!reader.IsDBNull(21)) _usrprovince = reader.GetString(21);
        //        if (!reader.IsDBNull(22)) _usrcity = reader.GetString(22);
        //        if (!reader.IsDBNull(23)) _smoke = reader.GetString(23);
        //        if (!reader.IsDBNull(24)) _bed = reader.GetString(24);
        //        if (!reader.IsDBNull(25)) _pillow = reader.GetString(25);
        //        if (!reader.IsDBNull(26)) _regdate = reader.GetDateTime(26);
        //        if (!reader.IsDBNull(27)) _logdate = reader.GetDateTime(27);
        //        if (!reader.IsDBNull(28)) _logip = reader.GetString(28);
        //        if (!reader.IsDBNull(29)) _logcount = reader.GetInt32(29);
        //        if (!reader.IsDBNull(30)) _usrstatus = reader.GetBoolean(30);
        //        if (!reader.IsDBNull(31)) _emailcheck = reader.GetBoolean(31);
        //        if (!reader.IsDBNull(32)) _mobilecheck = reader.GetBoolean(32);
        //        if (!reader.IsDBNull(33)) _usercheckcode = reader.GetString(33);
        //        if (!reader.IsDBNull(34)) _ademail = reader.GetBoolean(34);
        //        if (!reader.IsDBNull(35)) _admobile = reader.GetBoolean(35);
        //        if (!reader.IsDBNull(36)) _checkcodedate = reader.GetDateTime(36);
        //        if (!reader.IsDBNull(37)) _bookingcount = reader.GetInt32(37);
        //        if (!reader.IsDBNull(38)) _nightcount = reader.GetInt32(38);
        //    }
        //}

        

        #region Public Properties
        public int? Id
        {
            get { return _id; }
            set { _id = value; }
        }

        public string usrpassword
        {
            get { return _usrpassword; }
            set { _usrpassword = value; }
        }

        public int? gid
        {
            get { return _gid; }
            set { _gid = value; }
        }

        public int? lvlid
        {
            get { return _lvlid; }
            set { _lvlid = value; }
        }

        public int? endyear
        {
            get { return _endyear; }
            set { _endyear = value; }
        }

        public decimal scores
        {
            get { return _scores; }
            set { _scores = value; }
        }

        public decimal scorefreeze
        {
            get { return _scorefreeze; }
            set { _scorefreeze = value; }
        }

        public string usremail
        {
            get { return _usremail; }
            set { _usremail = value; }
        }

        public byte emailformat
        {
            get { return _emailformat; }
            set { _emailformat = value; }
        }

        public byte emaillanguage
        {
            get { return _emaillanguage; }
            set { _emaillanguage = value; }
        }

        public string usrmobile
        {
            get { return _usrmobile; }
            set { _usrmobile = value; }
        }

        public string question
        {
            get { return _question; }
            set { _question = value; }
        }

        public string answer
        {
            get { return _answer; }
            set { _answer = value; }
        }

        public string usrfirstname
        {
            get { return _usrfirstname; }
            set { _usrfirstname = value; }
        }

        public string usrlastname
        {
            get { return _usrlastname; }
            set { _usrlastname = value; }
        }

        public byte usrgender
        {
            get { return _usrgender; }
            set { _usrgender = value; }
        }

        public DateTime? usrbirthday
        {
            get { return _usrbirthday; }
            set { _usrbirthday = value; }
        }

        public string usrnationality
        {
            get { return _usrnationality; }
            set { _usrnationality = value; }
        }

        public string idtype
        {
            get { return _idtype; }
            set { _idtype = value; }
        }

        public string idno
        {
            get { return _idno; }
            set { _idno = value; }
        }

        public string usrcountry
        {
            get { return _usrcountry; }
            set { _usrcountry = value; }
        }

        public string usrprovince
        {
            get { return _usrprovince; }
            set { _usrprovince = value; }
        }

        public string usrcity
        {
            get { return _usrcity; }
            set { _usrcity = value; }
        }

        public string smoke
        {
            get { return _smoke; }
            set { _smoke = value; }
        }

        public string bed
        {
            get { return _bed; }
            set { _bed = value; }
        }

        public string pillow
        {
            get { return _pillow; }
            set { _pillow = value; }
        }

        public DateTime? regdate
        {
            get { return _regdate; }
            set { _regdate = value; }
        }

        public DateTime? logdate
        {
            get { return _logdate; }
            set { _logdate = value; }
        }

        public string logip
        {
            get { return _logip; }
            set { _logip = value; }
        }

        public int? logcount
        {
            get { return _logcount; }
            set { _logcount = value; }
        }

        public bool usrstatus
        {
            get { return _usrstatus; }
            set { _usrstatus = value; }
        }

        public bool emailcheck
        {
            get { return _emailcheck; }
            set { _emailcheck = value; }
        }

        public bool mobilecheck
        {
            get { return _mobilecheck; }
            set { _mobilecheck = value; }
        }

        public string usercheckcode
        {
            get { return _usercheckcode; }
            set { _usercheckcode = value; }
        }

        public bool ademail
        {
            get { return _ademail; }
            set { _ademail = value; }
        }

        public bool admobile
        {
            get { return _admobile; }
            set { _admobile = value; }
        }

        public DateTime? Checkcodedate
        {
            get { return _checkcodedate; }
            set { _checkcodedate = value; }
        }

        public int? bookingcount
        {
            get { return _bookingcount; }
            set { _bookingcount = value; }
        }

        public int? nightcount
        {
            get { return _nightcount; }
            set { _nightcount = value; }
        }
        #endregion 
    }
}
